<?php
/**
 * Created by PhpStorm.
 * User: mayn
 * Date: 2020/9/2
 * Time: 17:47
 */
$m = 7;                   //0000 0100
$n = 3;
/*$mn = $m & $n;            //只有对应位置都为1时，才为1
echo $mn;*/

//echo 1 >> 2;

//echo $m | $n;
//0000 0001
//0000 0011     //输出这个,遇1为1

//echo $m ^ $n;   //输出结果 0000 00010

//按位取反
/*$new_n = ~ $m;
echo decbin($new_n) . "<br/>";
echo $new_n;*/

//echo $n >> 1;




